﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace WeixinPayResdk.Models
{
    /// <summary>
    /// 微信支付V3 全局配置
    /// </summary>
    public abstract class WeixinPayConfig
    {
        /// <summary>
        /// 应用私钥文件物理路径
        /// </summary>
        public static readonly string privateKeyFile = HttpContext.Current.Server.MapPath("~/app_data/apiclient_key.pem");

        /// <summary>
        /// 微信证书文件物理路径
        /// </summary>
        public static readonly string apiclientCertFile = HttpContext.Current.Server.MapPath("~/app_data/apiclient_key.pem");

        /// <summary>
        /// 小程序appid
        /// </summary>
        public static readonly string Appid = "";

        /// <summary>
        /// 小程序密钥
        /// </summary>
        public static readonly string AppSecret = "";

        /// <summary>
        /// 小程序支付回调地址
        /// </summary>
        public static readonly string notifyUrl = "https://data.xxxx.com/api/orderexcmange/weixinpaynotify";

        /// <summary>
        /// 订单描述
        /// </summary>
        public static readonly string description = "平台支付费用";

        /// <summary>
        /// 商户号
        /// </summary>
        public static readonly string merchantId = "";

        /// <summary>
        /// 商户证书序列号 
        /// https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay7_0.shtml
        /// </summary>
        public static readonly string serialNo = "";

        /// <summary>
        /// ApiV3 密钥 32位 微信支付 商户平台设置
        /// https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay3_2.shtml
        /// </summary>
        public static readonly string aesKey = "";

        /// <summary>
        /// 退款回调通知地址
        /// </summary>
        public static readonly string refundsNotifyUrl = "https://data.xxxx.com/api/orderexcmange/refundsNotify";
    }
}
